Skip to content

Fix spotting parser for parenthesized text#110

Open
ppolariss wants to merge 1 commit into
Tencent-Hunyuan:mainfrom
ppolariss:fix-spotting-parentheses-parser
Open

Fix spotting parser for parenthesized text#110
ppolariss wants to merge 1 commit into
Tencent-Hunyuan:mainfrom
ppolariss:fix-spotting-parentheses-parser

Conversation

@ppolariss

Copy link
Copy Markdown

Summary

  • Parse text spotting responses by bbox delimiter instead of rejecting parentheses in text spans.
  • Preserve recognized text that contains ordinary parentheses, such as (AP) or (detectives).
  • Add unittest coverage for parenthesized spotting text.

Test

  • python3 -m unittest discover -s tests -v
  • python3 -m py_compile Hunyuan-OCR-master/utils.py tests/test_utils.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant